package com.controllers;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import pub.util.ResponseUtil;

import com.dto.UsersDto;
import com.services.TestBS;

@Controller()
@RequestMapping("/test")
public class Test {
	@Resource(name="testBSImpl")
	private TestBS bs;
	@RequestMapping(value="/table")
	@ResponseBody
	public String table(UsersDto dto) throws Exception {
		System.out.println("Test---------table");
		return ResponseUtil.writeGrid(bs.queryUsers());
	}
}
